import {createApp} from 'vue'
import './style.scss'
import './utils/flexible'
import App from './App.vue'
import router from "./router"
import ElementPlus from 'element-plus'
import './element-variables.scss'
import 'element-plus/theme-chalk/src/index.scss'
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import 'echarts-liquidfill'
import 'wow.js/css/libs/animate.css'
import './fonts/iconfont/iconfont.css'
import {createProdMockServer} from 'vite-plugin-mock/es/createProdMockServer'

//模拟请求接口数据,使用mock
import mock from './mock/'

import {createPinia} from 'pinia'

//引入百度地图
import BaiduMap from "vue-baidu-map-3x"


// mock 生产环境时打包
if (process.env.NODE_ENV === 'production') {
    createProdMockServer(mock)
}
// 此处的ak请替换成自己的
createApp(App).use(router).use(BaiduMap, {
    ak: 'm7wRyQw2y03qSi0dOsedW3skYdGXDzT9'
}).use(createPinia()).use(ElementPlus, {
    locale: zhCn,
}).mount('#app')
